package com.xiyu.service.enums.restaurant.dish;

import com.xiyu.service.enums.restaurant.combo.RestaurantComboTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 餐品禁忌人群
*/
@Getter
@AllArgsConstructor
public enum RestaurantDishTabooEnum implements IntArrayValuable {

    /**
    * 风湿
    */
    RHEUMATISM(0, "风湿"),
    /**
    * 高血压
    */
    HYPERTENSION(1, "高血压"),
    /**
    * 高血脂
    */
    HYPERLIPIDEMIA(2, "高血脂"),
    /**
    * 关节炎
    */
    ARTHRITIS(3, "关节炎"),
    /**
    * 冠心病
    */
    CORONARY_HEART_DISEASE(4, "冠心病"),
    /**
    * 脑血栓
    */
    CEREBRAL_THROMBOSIS(5, "脑血栓"),
    /**
    * 糖尿病
    */
    DIABETES(6, "糖尿病"),
    /**
    * 心肌梗
    */
    MYOCARDIAL_INFARCTION(7, "心肌梗"),
    /**
    * 其它
    */
    OTHER(8, "其它");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(RestaurantDishTabooEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(RestaurantDishTabooEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
